<template>
  <div>
    <div :class="['index_box',{'con':listsNum == 1}]">
      <index-head @list-jump="listJump"></index-head>
      <follow v-show="listsNum == 0"></follow>
      <recommend v-show="listsNum == 1"></recommend>
      <livebroadcast v-show="listsNum == 2"></livebroadcast>
      <bottom></bottom>
    </div>
  </div>
</template>

<script>
import indexHead from "../components/head/indexhead.vue";
import bottom from "../components/bottom/bottom.vue";
import recommend from "../components/index/recommend.vue";
import livebroadcast from "../components/index/livebroadcast.vue";
import follow from "../components/index/follow.vue";
export default {
  data: function () {
    return {
      listsNum: 1,
    };
  },
  methods: {
    listJump(i) {
      this.listsNum = i;
    },
  },
  components: {
    indexHead,
    bottom,
    recommend,
    livebroadcast,
    follow,
  },
};
</script>

<style lang="less">
.index_box {
  padding-bottom: 40px;
}
.con{
  padding-bottom: 50px;
  padding-top: 35px;
}
</style>